package com.sign.server.controller;

import com.sign.server.entity.SysUser;
import com.sign.server.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by ganbo on 2019/6/12.
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    SysUserService sysUserService;

    @GetMapping("/list")
    public List<SysUser> list() {
        java.lang.System.out.println("controller-list");
        return sysUserService.list();
    }

}
